package org.example.client;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import org.example.CreateGroupResponsePacket;
import org.example.LoginResponsePacket;
import org.example.im.SessionUtil;

import java.util.Date;

public class CreateGroupResponseHandler extends SimpleChannelInboundHandler<CreateGroupResponsePacket> {

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, CreateGroupResponsePacket createGroupResponsePacket) {
        System.out.println("群创建成功，id 为[" + createGroupResponsePacket.getGroupId() + "]");
        System.out.println("群里面有:" + createGroupResponsePacket.getUserNames());
    }
}
